package com.ghs.securityprojectboot.service;

import com.ghs.securityprojectboot.entity.DbAccount;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ghs.securityprojectboot.entity.vo.request.ConfirmResetVO;
import com.ghs.securityprojectboot.entity.vo.request.EmailRegisterVO;
import com.ghs.securityprojectboot.entity.vo.request.ResetPasswordVO;
import org.springframework.security.core.userdetails.UserDetailsService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author shenguohui
 * @since 2024-09-03
 */
public interface IDbAccountService extends IService<DbAccount>, UserDetailsService {
    String sendValidateEmail(String email,  boolean hasAccount);
    String validateAndRegister(EmailRegisterVO emailRegisterVO);
    DbAccount findAccountByNameOrEmail(String text);
    String resetConfirm(ConfirmResetVO info);
    String resetPassWord(ResetPasswordVO vo);
}
